﻿using BestTrader.Cms.ViewModels;
using BestTrader.Cms.ViewModels.WebApi;
using FluentValidation;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace BestTrader.Cms.WebApi.Validation
{
    public class CurrentIdAndRoleIdValidation : AbstractValidator<CurrentIdAndRoleIdInput>
    {
        public CurrentIdAndRoleIdValidation()
        {
            RuleFor(x => x.CurrentId).NotEmpty().NotNull().WithMessage("请输入相关用户");
            RuleFor(x => x.RoleId).NotEmpty().NotNull().WithMessage("请输入用户角色");
        }
    }

}
